package com.tbzz.mycloud.service;

import com.tbzz.mycloud.pojo.Payment;
import com.tbzz.mycloud.vo.CommonResult;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping(value="/payment/get/{id}")
     CommonResult getPaymentById(@PathVariable("id") Integer id);
    @GetMapping(value ="/payment/timeOut")
     String getTimeout();
}
